//
//  MOAlbumDetailItemModel.h
//  WCImApp
//
//  Created by MOiMac on 2019/9/12.
//  Copyright © 2019 WCImApp. All rights reserved.
//

#import <Foundation/Foundation.h>


NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSUInteger, MOSecretAlbumItemType) {
    MOSecretAlbumItemTypePic = 100,
    MOSecretAlbumItemTypeVid = 200,
};

typedef NS_ENUM(NSUInteger, MOSecretAlbumItemStatus) {
    /**上传中*/
    MOSecretAlbumItemStatus_Success = 0,
    /** 上传失败*/
    MOSecretAlbumItemStatus_Fail,
    /** 上传成功*/
    MOSecretAlbumItemStatus_Uploading,
    /** 涉嫌违规*/
    MOSecretAlbumItemStatus_Illegal = 50

};

typedef NS_ENUM(NSUInteger, MOAlbumBrowserType) {
    MOAlbumBrowserTypeAlbum,    // 相册
    MOAlbumBrowserTypeCollection, // 收藏
    MOAlbumBrowserTypeFile, // 文件
    MOAlbumBrowserTypeFileCollection //文件收藏
};

@interface MOAlbumDetailItemModel : NSObject

/** 资源本地id*/
@property (nonatomic, assign) NSInteger itemLocalId;

/** 资源id*/
@property (nonatomic, assign) NSInteger itemId;
/** 相册id*/
@property (nonatomic, assign) NSInteger album_id;
/** 持有者id*/
@property (nonatomic, assign) NSInteger owner_id;
/** 类型 100:图片 200:视频*/
@property (nonatomic, assign) MOSecretAlbumItemType type;
/** 地址*/
@property (nonatomic, copy)   NSString *src;
/** 大小*/
@property (nonatomic, assign) NSInteger size;
/** 上传时间*/
@property (nonatomic, copy)   NSString *upload_at;
/** 宽*/
@property (nonatomic, assign) NSInteger width;
/** 高*/
@property (nonatomic, assign) NSInteger height;
/** 封面*/
@property (nonatomic, copy)   NSString *cover_src;
/** 视频长度*/
@property (nonatomic, assign) NSInteger video_len;
/** md5值*/
@property (nonatomic, copy)   NSString *itemMD5;

//local
/** 视频/图片 的状态 */
@property (nonatomic, assign) MOSecretAlbumItemStatus itemStatus;

@property (nonatomic, strong) NSData *localCover;
//@property (nonatomic, assign) NSInteger creatTime;

@property (nonatomic, assign) CGFloat fProgress;

#pragma mark - 不入库
/** 记录cell的frame */
@property (assign, nonatomic) CGRect            frameForCollectionViewCell;

@property (nonatomic, assign) BOOL itemSel;

@property (nonatomic, copy) NSString *is_cover;

/** 视频时长： xx:xx */
@property (copy, nonatomic) NSString            *timeLength;

/** 样式类型 */
@property (assign, nonatomic) MOAlbumBrowserType            browserType;

//发送者
@property (nonatomic, copy) NSString *senderId;


/** 收藏用到的 content，图片浏览器需要 */
@property (copy, nonatomic) NSString            *content;


@end

NS_ASSUME_NONNULL_END
